<%--
  Created by IntelliJ IDEA.
  User: Shisanyang
  Date: 2020/2/6
  Time: 19:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% pageContext.setAttribute("contextPath", request.getContextPath());%>
<html>
<head>
    <title>员工注册</title>
</head>
<body>
<%--enctype="application/x-www-form-urlencoded"--%>
<form action="${contextPath}/employee"  method="post">
    用户名：<input type="text" name="lastName"/><br/>
    邮箱：<input type="text" name="email"/><br/>
    性别：
        男：<input type="radio" name="gender" value="Male" checked="true"/>
        女：<input type="radio" name="gender" value="Female"><br/>
    部门：
        <select name="department">
            <c:forEach items="${departments}" var="department">
                <option>
                    ${department.toString()}
                </option>
            </c:forEach>
        </select><br/>
    <input type="submit" value="提交">
</form>
</body>
</html>
